using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetVerifyImgResponse : GeneratedMessageLite<GetVerifyImgResponse, GetVerifyImgResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetVerifyImgResponse, GetVerifyImgResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GetVerifyImgResponse result;
			protected override GetVerifyImgResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetVerifyImgResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetVerifyImgResponse DefaultInstanceForType
			{
				get
				{
					return GetVerifyImgResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public SKBuiltinString_t ImgSid
			{
				get
				{
					return this.result.ImgSid;
				}
				set
				{
					this.SetImgSid(value);
				}
			}
			public SKBuiltinBuffer_t ImgBuf
			{
				get
				{
					return this.result.ImgBuf;
				}
				set
				{
					this.SetImgBuf(value);
				}
			}
			public SKBuiltinString_t ImgEncryptKey
			{
				get
				{
					return this.result.ImgEncryptKey;
				}
				set
				{
					this.SetImgEncryptKey(value);
				}
			}
			public Builder()
			{
				this.result = GetVerifyImgResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetVerifyImgResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetVerifyImgResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetVerifyImgResponse other = this.result;
					this.result = new GetVerifyImgResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetVerifyImgResponse.Builder Clear()
			{
				this.result = GetVerifyImgResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetVerifyImgResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetVerifyImgResponse.Builder(this.result);
				}
				return new GetVerifyImgResponse.Builder().MergeFrom(this.result);
			}
			public override GetVerifyImgResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetVerifyImgResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetVerifyImgResponse)
				{
					return this.MergeFrom((GetVerifyImgResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetVerifyImgResponse.Builder MergeFrom(GetVerifyImgResponse other)
			{
				return this;
			}
			public override GetVerifyImgResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetVerifyImgResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetVerifyImgResponse._getVerifyImgResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetVerifyImgResponse._getVerifyImgResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
							if (this.result.hasImgSid)
							{
								builder2.MergeFrom(this.ImgSid);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.ImgSid = builder2.BuildPartial();
							continue;
						}
						if (num3 == 26u)
						{
							SKBuiltinBuffer_t.Builder builder3 = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasImgBuf)
							{
								builder3.MergeFrom(this.ImgBuf);
							}
							input.ReadMessage(builder3, extensionRegistry);
							this.ImgBuf = builder3.BuildPartial();
							continue;
						}
						if (num3 == 34u)
						{
							SKBuiltinString_t.Builder builder4 = SKBuiltinString_t.CreateBuilder();
							if (this.result.hasImgEncryptKey)
							{
								builder4.MergeFrom(this.ImgEncryptKey);
							}
							input.ReadMessage(builder4, extensionRegistry);
							this.ImgEncryptKey = builder4.BuildPartial();
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetVerifyImgResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GetVerifyImgResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GetVerifyImgResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GetVerifyImgResponse.Builder SetImgSid(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasImgSid = true;
				this.result.imgSid_ = value;
				return this;
			}
			public GetVerifyImgResponse.Builder SetImgSid(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasImgSid = true;
				this.result.imgSid_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgResponse.Builder MergeImgSid(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasImgSid && this.result.imgSid_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.imgSid_ = SKBuiltinString_t.CreateBuilder(this.result.imgSid_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.imgSid_ = value;
				}
				this.result.hasImgSid = true;
				return this;
			}
			public GetVerifyImgResponse.Builder ClearImgSid()
			{
				this.PrepareBuilder();
				this.result.hasImgSid = false;
				this.result.imgSid_ = null;
				return this;
			}
			public GetVerifyImgResponse.Builder SetImgBuf(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasImgBuf = true;
				this.result.imgBuf_ = value;
				return this;
			}
			public GetVerifyImgResponse.Builder SetImgBuf(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasImgBuf = true;
				this.result.imgBuf_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgResponse.Builder MergeImgBuf(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasImgBuf && this.result.imgBuf_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.imgBuf_ = SKBuiltinBuffer_t.CreateBuilder(this.result.imgBuf_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.imgBuf_ = value;
				}
				this.result.hasImgBuf = true;
				return this;
			}
			public GetVerifyImgResponse.Builder ClearImgBuf()
			{
				this.PrepareBuilder();
				this.result.hasImgBuf = false;
				this.result.imgBuf_ = null;
				return this;
			}
			public GetVerifyImgResponse.Builder SetImgEncryptKey(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasImgEncryptKey = true;
				this.result.imgEncryptKey_ = value;
				return this;
			}
			public GetVerifyImgResponse.Builder SetImgEncryptKey(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasImgEncryptKey = true;
				this.result.imgEncryptKey_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgResponse.Builder MergeImgEncryptKey(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasImgEncryptKey && this.result.imgEncryptKey_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.imgEncryptKey_ = SKBuiltinString_t.CreateBuilder(this.result.imgEncryptKey_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.imgEncryptKey_ = value;
				}
				this.result.hasImgEncryptKey = true;
				return this;
			}
			public GetVerifyImgResponse.Builder ClearImgEncryptKey()
			{
				this.PrepareBuilder();
				this.result.hasImgEncryptKey = false;
				this.result.imgEncryptKey_ = null;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int ImgSidFieldNumber = 2;
		public const int ImgBufFieldNumber = 3;
		public const int ImgEncryptKeyFieldNumber = 4;
		private static readonly GetVerifyImgResponse defaultInstance;
		private static readonly string[] _getVerifyImgResponseFieldNames;
		private static readonly uint[] _getVerifyImgResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasImgSid;
		private SKBuiltinString_t imgSid_;
		private bool hasImgBuf;
		private SKBuiltinBuffer_t imgBuf_;
		private bool hasImgEncryptKey;
		private SKBuiltinString_t imgEncryptKey_;
		private int memoizedSerializedSize = -1;
		public static GetVerifyImgResponse DefaultInstance
		{
			get
			{
				return GetVerifyImgResponse.defaultInstance;
			}
		}
		public override GetVerifyImgResponse DefaultInstanceForType
		{
			get
			{
				return GetVerifyImgResponse.DefaultInstance;
			}
		}
		protected override GetVerifyImgResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public SKBuiltinString_t ImgSid
		{
			get
			{
				return this.imgSid_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public SKBuiltinBuffer_t ImgBuf
		{
			get
			{
				return this.imgBuf_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public SKBuiltinString_t ImgEncryptKey
		{
			get
			{
				return this.imgEncryptKey_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasImgSid && this.hasImgBuf && this.BaseResponse.IsInitialized && this.ImgBuf.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasImgSid)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.ImgSid);
				}
				if (this.hasImgBuf)
				{
					num += CodedOutputStream.ComputeMessageSize(3, this.ImgBuf);
				}
				if (this.hasImgEncryptKey)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.ImgEncryptKey);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetVerifyImgResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getVerifyImgResponseFieldNames = GetVerifyImgResponse._getVerifyImgResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, getVerifyImgResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasImgSid)
			{
				output.WriteMessage(2, getVerifyImgResponseFieldNames[3], this.ImgSid);
			}
			if (this.hasImgBuf)
			{
				output.WriteMessage(3, getVerifyImgResponseFieldNames[1], this.ImgBuf);
			}
			if (this.hasImgEncryptKey)
			{
				output.WriteMessage(4, getVerifyImgResponseFieldNames[2], this.ImgEncryptKey);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasImgSid)
			{
				num ^= this.imgSid_.GetHashCode();
			}
			if (this.hasImgBuf)
			{
				num ^= this.imgBuf_.GetHashCode();
			}
			if (this.hasImgEncryptKey)
			{
				num ^= this.imgEncryptKey_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetVerifyImgResponse getVerifyImgResponse = value as GetVerifyImgResponse;
			return getVerifyImgResponse != null && (this.hasBaseResponse == getVerifyImgResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(getVerifyImgResponse.baseResponse_))) && (this.hasImgSid == getVerifyImgResponse.hasImgSid && (!this.hasImgSid || this.imgSid_.Equals(getVerifyImgResponse.imgSid_))) && (this.hasImgBuf == getVerifyImgResponse.hasImgBuf && (!this.hasImgBuf || this.imgBuf_.Equals(getVerifyImgResponse.imgBuf_))) && (this.hasImgEncryptKey == getVerifyImgResponse.hasImgEncryptKey && (!this.hasImgEncryptKey || this.imgEncryptKey_.Equals(getVerifyImgResponse.imgEncryptKey_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetVerifyImgResponse, GetVerifyImgResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GetVerifyImgResponse, GetVerifyImgResponse.Builder>.PrintField("ImgSid", this.hasImgSid, this.imgSid_, writer);
			GeneratedMessageLite<GetVerifyImgResponse, GetVerifyImgResponse.Builder>.PrintField("ImgBuf", this.hasImgBuf, this.imgBuf_, writer);
			GeneratedMessageLite<GetVerifyImgResponse, GetVerifyImgResponse.Builder>.PrintField("ImgEncryptKey", this.hasImgEncryptKey, this.imgEncryptKey_, writer);
		}
		public static GetVerifyImgResponse ParseFrom(byte[] data)
		{
			return GetVerifyImgResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetVerifyImgResponse MakeReadOnly()
		{
			return this;
		}
		public static GetVerifyImgResponse.Builder CreateBuilder()
		{
			return new GetVerifyImgResponse.Builder();
		}
		public override GetVerifyImgResponse.Builder ToBuilder()
		{
			return GetVerifyImgResponse.CreateBuilder(this);
		}
		public override GetVerifyImgResponse.Builder CreateBuilderForType()
		{
			return new GetVerifyImgResponse.Builder();
		}
		public static GetVerifyImgResponse.Builder CreateBuilder(GetVerifyImgResponse prototype)
		{
			return new GetVerifyImgResponse.Builder(prototype);
		}
		static GetVerifyImgResponse()
		{
			GetVerifyImgResponse.defaultInstance = new GetVerifyImgResponse().MakeReadOnly();
			GetVerifyImgResponse._getVerifyImgResponseFieldNames = new string[]
			{
				"BaseResponse",
				"ImgBuf",
				"ImgEncryptKey",
				"ImgSid"
			};
			GetVerifyImgResponse._getVerifyImgResponseFieldTags = new uint[]
			{
				10u,
				26u,
				34u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.GetVerifyImgResponse.Descriptor, null);
		}
	}
}
